package com.hubu.pojo.hubu;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.experimental.Accessors;


import java.io.Serializable;


@Data
@NoArgsConstructor
@Accessors(chain = true)
public class IdCart2 implements Serializable {
    private static final long serialVersionUID = 423808669613968328L;

    private String id;
    @NonNull
    private String name;
    @NonNull
    private String idNum;

    private String gender;
    private String birthday;
    private String parents;
    private String address;
    private String localpolice;
    private String area;
    private String coach;
    private String training;
    private String repUnit;

    @Override
    public String toString() {
        return "IdCart{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", idNum='" + idNum + '\'' +
                ", gender='" + gender + '\'' +
                ", birthday='" + birthday + '\'' +
                ", parents='" + parents + '\'' +
                ", address='" + address + '\'' +
                ", localpolice='" + localpolice + '\'' +
                ", area='" + area + '\'' +
                ", coach='" + coach + '\'' +
                ", training='" + training + '\'' +
                ", repUnit='" + repUnit + '\'' +
                '}';
    }

    public IdCart2(String id, @NonNull String name, @NonNull String idNum, String gender, String birthday,
                  String parents, String address, String localpolice, String area,
                  String coach, String training, String repUnit) {
        this.id = id;
        this.name = name;
        this.idNum = idNum;
        this.gender = gender;
        this.birthday = birthday;
        this.parents = parents;
        this.address = address;
        this.localpolice = localpolice;
        this.area = area;
        this.coach = coach;
        this.training = training;
        this.repUnit = repUnit;
    }
}
